package com.robam.gulimall.product.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.robam.common.utils.PageUtils;
import com.robam.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.robam.gulimall.product.entity.AttrEntity;
import com.robam.gulimall.product.entity.AttrGroupEntity;
import com.robam.gulimall.product.vo.AttrGroupAndAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author bobo
 * @email 412467850@qq.com
 * @date 2020-10-15 08:42:51
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params, QueryWrapper<AttrGroupEntity> wrapper);

    AttrGroupEntity getAttrGroupInfo(Long attrGroupId);

    List<AttrEntity> getAttrGroupAttrRelationByGroupId(Long groupId);

    PageUtils getAttrGroupAttrNoRelation(Map<String, Object> params, Long groupId);

    void addAttrGroupAttrRelation(List<AttrAttrgroupRelationEntity> relationEntities);

    List<AttrGroupAndAttrsVo> getAttrGroupAndAttrByCatId(Long catId);
}

